<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>File: SleepMirror.rb [RDoc Documentation]</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;

    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }

  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )

  // ]]>
  </script>

</head>
<body>


  <div id="fileHeader">
    <h1>SleepMirror.rb</h1>
    <table class="header-table">
    <tr class="top-aligned-row">
      <td><strong>Path:</strong></td>
      <td>lib/SleepMirror.rb

      </td>
    </tr>
    <tr class="top-aligned-row">
      <td><strong>Last Update:</strong></td>
      <td>2010-01-29 00:55:55 -0600</td>
    </tr>
    </table>
  </div>
  <!-- banner header -->

  <div id="bodyContent">

  <div id="contextContent">

    <div id="description">
      <pre>
 SleepMirror - A view on your sleep quality.

 This prototype will load or accept an image and slowly fade it in.
 Text is written giving the user instructions on what to do.
 Start time is captured.
 Keyboard (SDL) Events are examined, looking for :t or :f.
 End time is captured and elapsed time is computed.
 The key pressed triggers a message sayingcorrect or incorrect.
 The elapsed time is displayed.
 Then we loop until q, esc, or quit is requested.

 Version History:
 01/18/2010 cgm: initial version.
 01/19/2010 cgm p3: Refactor this code into classes, remove the globals.
</pre>
<p>
Note to Self: The OCRA build command is
C:UsersGaryDocumentsNetBeansProjectssleepmirrorlib>ocra SleepMirror.rb *
images*
</p>

    </div>

    <div id="requires-list">
      <h3 class="section-bar">Required files</h3>

      <div class="name-list">

        rubygame&nbsp;&nbsp;

      </div>
    </div>

   </div>


    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">

        <a href="#M000004">exit_script</a>&nbsp;&nbsp;

        <a href="#M000002">make_bright</a>&nbsp;&nbsp;

        <a href="#M000001">make_dim</a>&nbsp;&nbsp;

        <a href="#M000003">show_time</a>&nbsp;&nbsp;

      </div>
    </div>

  </div>

    <!-- if includes -->

    <div id="includes">
      <h3 class="section-bar">Included Modules</h3>

      <div id="includes-list">

        <span class="include-name">Rubygame</span>

        <span class="include-name">Rubygame::Events</span>

        <span class="include-name">Rubygame::EventTriggers</span>

        <span class="include-name">Rubygame::EventActions</span>

      </div>
    </div>

    <div id="section">

    <div id="constants-list">
      <h3 class="section-bar">Constants</h3>

      <div class="name-list">
        <table summary="Constants">

        <tr class="top-aligned-row context-row">
          <td class="context-item-name">DEFAULT_IMAGE</td>
          <td>=</td>
          <td class="context-item-value">&quot;Eq135.png&quot;</td>

        </tr>

        <tr class="top-aligned-row context-row">
          <td class="context-item-name">MAXALPHA</td>
          <td>=</td>
          <td class="context-item-value">255</td>

        </tr>

        <tr class="top-aligned-row context-row">
          <td class="context-item-name">ALPHASTEP</td>
          <td>=</td>
          <td class="context-item-value">1</td>

        </tr>

        <tr class="top-aligned-row context-row">
          <td class="context-item-name">MINALPHA</td>
          <td>=</td>
          <td class="context-item-value">0</td>

        </tr>

        </table>
      </div>
    </div>




    <!-- if method_list -->

    <div id="methods">

      <h3 class="section-bar">Public Instance methods</h3>


      <div id="method-M000004" class="method-detail">
        <a name="M000004"></a>

        <div class="method-heading">

          <a href="SleepMirror_rb.src/M000004.html" target="Code" class="method-signature"
            onclick="popupCode('SleepMirror_rb.src/M000004.html');return false;">

          <span class="method-name">exit_script</span><span class="method-args">()</span>

          </a>

        </div>

        <div class="method-description">

        </div>
      </div>


      <div id="method-M000002" class="method-detail">
        <a name="M000002"></a>

        <div class="method-heading">

          <a href="SleepMirror_rb.src/M000002.html" target="Code" class="method-signature"
            onclick="popupCode('SleepMirror_rb.src/M000002.html');return false;">

          <span class="method-name">make_bright</span><span class="method-args">()</span>

          </a>

        </div>

        <div class="method-description">

        </div>
      </div>


      <div id="method-M000001" class="method-detail">
        <a name="M000001"></a>

        <div class="method-heading">

          <a href="SleepMirror_rb.src/M000001.html" target="Code" class="method-signature"
            onclick="popupCode('SleepMirror_rb.src/M000001.html');return false;">

          <span class="method-name">make_dim</span><span class="method-args">()</span>

          </a>

        </div>

        <div class="method-description">

        </div>
      </div>


      <div id="method-M000003" class="method-detail">
        <a name="M000003"></a>

        <div class="method-heading">

          <a href="SleepMirror_rb.src/M000003.html" target="Code" class="method-signature"
            onclick="popupCode('SleepMirror_rb.src/M000003.html');return false;">

          <span class="method-name">show_time</span><span class="method-args">(event)</span>

          </a>

        </div>

        <div class="method-description">

        </div>
      </div>



    </div>




  </div>

<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>
